RED.settings = new Proxy(RED.settings, {
    set(target, key, value) {
        target[key] = key === 'httpNodeRoot' ? "/api/" + window.location.hash.replace('#flow/', '') : value;
        return true;
    }
})